{% extends "base.html" %}

{% block head_block %}
<meta name="google-site-verification" content="cNnJojJTZ8JfvA-K2LCPumWBbppHBhPwFWuikjERTM4" />
<meta name="Keywords" content="google app engine ,java ,sql ,c# ,jQuery ,软件开发,程序设计,前端设计." />
<meta name="Description" content="Hi ,I'm Angel ,this is my personal blog !主要分享软件开发,程序设计,前端设计." />
{% endblock %}

{% block content %}


<div id = "section">
	<div id="content">

	<div id = "RandomShow">
	<script language="JavaScript" type="text/javascript">
		tips = new Array(3);
		tips[0] = '<img alt="" width="860" height="120" src="/themes/{{ blog.theme_name }}/images/stushow1.jpg" border="0" />';
		tips[1] = '<img alt="" width="860" height="120" src="/themes/{{ blog.theme_name }}/images/stushow2.jpg" border="0" />';
		tips[2] = '<img alt="" width="860" height="120" src="/themes/{{ blog.theme_name }}/images/stushow3.jpg" border="0" />';
		index = Math.floor(Math.random() * tips.length);
		document.write(tips[index]);
	</script>
	</div>
		<div class="postlist">
		<div id = "article">
		{% if entries %}
		{% for entry in entries %}
			<div id="post-{{entry.key}}">
				<div class="title">
					<h3>{{entry.date|datetz:"Y/m/d H:i"}}</h3>
					<h2>
						<a href="/{{ entry.link|escape }}" rel="bookmark" title="Permanent link to {{entry.title|escape}}">{{entry.title|escape}}
						</a>
					</h2>
					<small>
					<a href="/{{entry.link|escape}}#comments">{{entry.commentcount}} Comments</a>, {%for cate in entry.categories%} <a href="/category/{{cate.slug}}">{{cate.name}}</a> {%endfor%}
					,<a href="/{{entry.link|escape}}"> {{entry.readtimes}} Reads</a>.{%if self.is_admin%}<a href="{{entry.edit_url}}">Editor</a> | {%endif%}
					</small>
				</div>
				<div class="entry">
					{{entry.content_excerpt}}
				</div>
				{% if entry.tags%}
				<p class="postmeta">
					Label：{%for tag in entry.tags%}
					<a href="/tag/{{tag|urlencode}}">{{tag}}</a>&nbsp;{%endfor%}
				</p>
				{%endif%}
				
			</div>
			{% endfor %}
		</div>
		<div id = "nav">
		{% if show_prev %}<a href="/page/{{ pageindex|add:"-1" }}" >&laquo;Previous</a>{% endif %}
		{% if show_next %}<a href="/page/{{ pageindex|add:"1"}}" >Next&raquo;</a>{% endif %}
			    <div class="clear"></div> 
		</div>
		{% else %}
<div id="postlist">
		<div id = "article">
			<div class="title">
				<h2>Not Found</h2>
			</div>
			<div class="entry">
				<p>Sorry, your view is not here, try to use the sidebar search tools.</p>
			</div>
		</div>
		</div>
		{% endif %}
	</div>
{% include "sidebar.html" %}
<div class="clear"></div>  
</div>
{% endblock %}